package com.engineering.elink.recruitdao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.engineering.elink.domain.recruit.VitaDelivery;

public interface VitaDeliveryMapper {
    int deleteByPrimaryKey(Integer vdId);

    int insert(VitaDelivery record);

    int insertSelective(VitaDelivery record);

    VitaDelivery selectByPrimaryKey(Integer vdId);

    int updateByPrimaryKeySelective(VitaDelivery record);

    int updateByPrimaryKey(VitaDelivery record);
    
//    @Select(" select count(1) from vita_delivery where job_id=#{jobId} and cvd_id=#{cvdId} and company_id=#{companyId} ")
//    int selectVdById(@Param("jobId")String jobId,@Param("cvdId")String cvdId,@Param("companyId")String companyId);
    

    //@Select(" select count(1) from vita_delivery where cvd_id=#{cvdId} and company_id=#{companyId} ")
    VitaDelivery selectVdById(@Param("cvdId")String cvdId,@Param("companyId")String companyId,@Param("type")Integer type);
    
    int updateBatchByType(@Param("type")Integer type,@Param("vdIds")String[] vdIds);
    
    List<Integer> selectViDeByJobId(@Param("jobIds")String[] jobIds,@Param("type")Integer type);
    
    int updateBatchByTypeList(@Param("type")Integer type,@Param("vdList")List<Integer> vdList);
    
}